﻿using System;

namespace BaseSyntax
{
    public static class JaggedArr
    {
        public static void test()
        {
            int [][] a1 = new int[3][];
            a1[0] = new int[2];
            a1[1] = new int[3];
            a1[2] = new int[4];

            int[][] a2 = {new int[1]{1}, new int[2]{2, 3}, new int[3]{4, 5, 6}};
            foreach (int[] a in a2)
            {
                foreach (int i in a)
                {
                    Console.WriteLine(i);
                }
            }
        }
    }
}